package com.ruoyi.framework.config.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：jijinwu
 * @ClassName CasProperties
 * @date ：2025/3/29 - 14:10
 * @version: V1.0
 * @slogan: 天下风云出我辈，一入代码岁月催
 * @description: cas配置参数
 **/
@Configuration
public class CasProperties {

    /**
     * cas认证url
     */
    @Value("${cas.server.url-prefix}")
    private String serverUrlPrefix;

    /**
     * cas认证登录url
     */
    @Value("${cas.server.login-url}")
    private String serverLoginUrl;

    /**
     * cas登出url
     */
    @Value("${cas.server.logout-url}")
    private String serverLogoutUrl;


    /**
     * 客户端登录url
     */
    @Value("${cas.client.login-url}")
    private String clientLoginUrl;

    /**
     * 客户端登出url
     */
    @Value("${cas.client.logout-url}")
    private String clientLogoutUrl;

    /**
     * 是否开启cas认证
     */
    @Value("${cas.casEnable}")
    private boolean casEnable;

    /**
     * 前端项目访问url
     */
    @Value("${cas.client.web_url}")
    private String webUrl;

    public String getServerUrlPrefix() {
        return serverUrlPrefix;
    }

    public void setServerUrlPrefix(String serverUrlPrefix) {
        this.serverUrlPrefix = serverUrlPrefix;
    }

    public String getServerLoginUrl() {
        return serverLoginUrl;
    }

    public void setServerLoginUrl(String serverLoginUrl) {
        this.serverLoginUrl = serverLoginUrl;
    }

    public String getServerLogoutUrl() {
        return serverLogoutUrl;
    }

    public void setServerLogoutUrl(String serverLogoutUrl) {
        this.serverLogoutUrl = serverLogoutUrl;
    }

    public String getClientLoginUrl() {
        return clientLoginUrl;
    }

    public void setClientLoginUrl(String clientLoginUrl) {
        this.clientLoginUrl = clientLoginUrl;
    }

    public String getClientLogoutUrl() {
        return clientLogoutUrl;
    }

    public void setClientLogoutUrl(String clientLogoutUrl) {
        this.clientLogoutUrl = clientLogoutUrl;
    }

    public boolean isCasEnable() {
        return casEnable;
    }

    public void setCasEnable(boolean casEnable) {
        this.casEnable = casEnable;
    }

    public String getWebUrl() {
        return webUrl;
    }

    public void setWebUrl(String webUrl) {
        this.webUrl = webUrl;
    }
}

